package dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import entity.App_category;
import entity.App_info;
import entity.App_version;
import entity.Data_dictionary;

public interface AppInfoMapper {
	
	//��ѯ����APPά��
	public List<App_info> query(Map map);
	
	//��ѯ�ܼ�¼��
	public int PageCount(Map map);
	
	//����ƽ̨�������ѯ
	public List<Data_dictionary> Platform();
	
	//APP״̬�������ѯ
	public List<Data_dictionary> App();
	
	//��ѯһ������������
	public List<App_category> One();
	
	//��ѯ����������
	public List<App_category> Two(Integer id);
	
	//����idɾ��APP��Ϣ
	public int dele(@Param(value="id")Integer delId);
	
	//����id��ѯ��ϸ��Ϣ
	public App_info Appquery(@Param(value="id")Integer Id);
	
	//����id��ѯ��ʷ�汾
	public List<App_version> Appchaxun(@Param(value="appid")Integer Id);
	
	//����ҳ������ƽ̨�������ѯ
	public List<Data_dictionary> Addping(@Param(value="typeCode")String typecode);
	
	//����ҳ��һ�������������ѯ
	public List<App_category> One1();
	
	//��������
	public int insert(App_info app_info);
	
	//��֤APK�����Ƿ����
	public int Verification(@Param(value="APKName")String APKName);
	
	//�޸�ҳ��������
	public List<App_category> getAppCategoryListByParentId(@Param("parentId")Integer parentId);
	
	//����APP�汾��Ϣ
	public int AddBan(App_version app_version);
	
	//��ѯAPK����
	public App_info ApkName(@Param("id")Integer id);
	
	//�޸�versionId
	public Integer updateVersionId(@Param("versionId")Integer versionId,@Param("id")Integer id);
	
	//�޸�ͼƬ·��Ϊnull
	public int updateimages(@Param("id")Integer id);
	
	//�޸�APP������Ϣ
	public int updatexinxi(App_info app_info);
	
	//��ʾҪ�޸ĵİ汾��
	public App_version querybanben(@Param("id")Integer id);
	
	//�汾apkɾ��
	public int updatebanben(@Param("id")Integer id);
	
	//app上下架
	public int uplower(@Param("status")Integer status,@Param("id")Integer id);
	
	//更新版本
	public int updatemodiy(App_version app_version);
		
	//删除版本信息
	public int delemodiy(@Param("id")Integer id);
}
